import { createContext } from "react"

export interface FormContextProps {
    values?:Record<string,any> // store
    setValues?:(values:Record<string,any>) => void // 设置store
    onValueChange?:(key:string,value:any)=>void // 监听value值的变化
    validateRegister?:(name:string,cb:Function) =>void // 注册表单的校验规则
}

export default createContext<FormContextProps>({});